/**
 * 判断浏览器是否启用flash
 */
function isUseFlash() {
    var flag = false;
    if (window.ActiveXObject) {
        try {
            var swf = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
            if (swf) {
                flag = true;
            }
        } catch (e) {
        }
    } else {
        try {
            var swf = navigator.plugins['Shockwave Flash'];
            if (swf) {
                flag = true;
            }
        } catch (e) {
        }
    }
    return flag;
}

/**
 * 是否登录
 */
function hasLogin() {
    if (isLogin) {
        return true;
    } else {
        window.location.href = '/login';
    }
}